package org.gg;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import org.openstreetmap.gui.jmapviewer.Demo;

public class Holi extends JFrame{

    private javax.swing.JButton btnEntrar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField txtPass;
    private javax.swing.JTextField txtUsuario;
    
    public Holi(){
        super("Ola k ase");
        setSize(300, 300);
        setLayout(new BorderLayout());
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setExtendedState(JFrame.MAXIMIZED_BOTH);
        
        
        jLabel1 = new javax.swing.JLabel();
        jLabel1.setText("Lat");
        jLabel2 = new javax.swing.JLabel();
        jLabel2.setText("Lon");
        txtUsuario = new javax.swing.JTextField();
        txtUsuario.setText("");
        txtPass = new javax.swing.JTextField();
        txtPass.setText("");
        btnEntrar = new javax.swing.JButton();
        btnEntrar.setSize(20, 20);
        btnEntrar.setText("Ir a mapa");
        
        
        btnEntrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Demo demito = new Demo();
                demito.setVisible(true);
                
            }
        });
        
        getContentPane().add(jLabel1);
        getContentPane().add(txtUsuario);
        getContentPane().add(jLabel2);
        getContentPane().add(txtPass);
        //getContentPane().add(btnEntrar);
    }
    
    public static void main(String[] args) {
        // java.util.Properties systemProperties = System.getProperties();
        // systemProperties.setProperty("http.proxyHost", "localhost");
        // systemProperties.setProperty("http.proxyPort", "8008");
        new Holi().setVisible(true);
    }
}
